package pl.edu.agh.iosr.gamblingzone.dao.ejb;

import java.util.List;

import pl.edu.agh.iosr.gamblingzone.dao.BetDAO;
import pl.edu.agh.iosr.gamblingzone.model.Bet;
import pl.edu.agh.iosr.gamblingzone.model.BettingSlip;

/**
 * The Class BetDAOBean.
 */
public class BetDAOBean extends GenericDAOBean<Bet, Long>
					implements BetDAO {

	/* (non-Javadoc)
	 * @see pl.edu.agh.iosr.gamblingzone.dao.BetDAO#findAll(pl.edu.agh.iosr.gamblingzone.model.BettingSlip, int)
	 */
	public List<Bet> findAll(BettingSlip bettingSlip, int page) {
		return findAll(bettingSlip, "bettingSlip", page);
	}

	/* (non-Javadoc)
	 * @see pl.edu.agh.iosr.gamblingzone.dao.BetDAO#getEntitiesCount(pl.edu.agh.iosr.gamblingzone.model.BettingSlip)
	 */
	public int getEntitiesCount(BettingSlip bettingSlip) {
		return getEntitiesCount(bettingSlip, "bettingSlip");
	}

}
